import {storeSystemCertificateInfo} from "@/renderer/main-window/stores/storeSystemCertificateInfo.js";

function blobToBase64(blob) {
    return new Promise((resolve, reject) => {
        const reader = new FileReader();
        reader.onload = () => resolve(reader.result); // 成功时返回 Base64 字符串
        reader.onerror = reject; // 失败时抛出错误
        reader.readAsDataURL(blob); // 开始读取 Blob
    });
}


export {
    blobToBase64
}

